<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>12-图片链接</title>
    <style>
        /*a {
            background: url("images/icon.gif") no-repeat;
            width: 150px;
            height: 151px;
            display: inline-block;
        }*/
    </style>
</head>
<body>

<a href="http://www.baidu.com">
    <img src="images/icon.gif" alt="">
</a>

<!--<a href="http://www.baidu.com"></a>-->

</body>
</html>